Version

ComboFor<TProperty>(Expression<Func<TModel,TProperty>>,IEnumerable) Method

Helper to configure a Combo widget for a specific property of the model.
Syntax
'Declaration
 
Public Overloads Function ComboFor(Of TProperty)( _
   ByVal expression As System.Linq.Expressions.Expression(Of Func(Of TModel,TProperty)), _
   ByVal dataSource As System.Collections.IEnumerable _
) As ComboWrapper
public ComboWrapper ComboFor<TProperty>( 
   System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression,
   System.Collections.IEnumerable dataSource
)

Parameters

expression
An expression that identifies the object that contains the properties to render.
dataSource
Data source for Combo such as IEnumerable or IQueryable

Type Parameters

TProperty
The type of the property.

Return Value

New instance of ComboWrapper
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub